var dateUtil = require('/pages/util/util.js');
//app.js
App({

  userSign: null,
  setting: null,
  loginUser: null,
  cookie: null,
  firstIn: 1,
  livelist: null,
  /**变量 */
  globalData: {
    userInfo: null,
    userId: '',
    Name: '',
    openid: '',
    unionid: '',
    session_key: '',
    currentlive: {
      liveId: '',
      playF: '',
      playR: ''
    }
  },
  onLaunch: function () {
    console.log('========app onLaunch========')
    var that = this
    // 展示本地存储能力
    var logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)
  },
  toIndex: function () {
    console.log('toIndex---------------->loginUser:' + this.loginUser.getUserName)
    wx.switchTab({
      url: '/pages/livelist/livelist',
    });
  }
  ,
})